#define Speed_Z CH4
#define Speed_F CH5

extern float speed,Require_speed;
extern float pulse[10],sum_pulse;
extern float sub_speed,add_sub_speed,limit_add_sub_speed,give_speed_forward;
extern float speed_P,key_speed_P;
extern float speed_I,key_speed_I;
extern float I_max,key_I_max;
extern float run_time,key_run_time;
extern int speed_flag;
extern float key_speed_max,speed_max;
extern int control_t;
extern int out_speed;
extern int add_speed_flag;
extern int reed[2];
extern int flag_break;
extern int break_t;
extern float zhi_speed;
extern float temp_speed_max;
extern float k_speed;
extern float least_speed_max;
extern int stop_flag;
extern int t_stop;
extern int stop_speed;

extern void speed_PWM_init(void);
extern void Get_speed(void);
extern void Speed_control(void);
extern void Give_speed(void); 
extern void reed_init(void);
extern void reed_get(void);
extern void speed_break(void);
extern void Speed_change(void);


